<?
include_once 'functions1.php';
$query=$_REQUEST[whatever];
$debug=$_REQUEST;
$tb1=$_REQUEST[uname];
$tb2=$_REQUEST[name];
$tb3=$_REQUEST[pren];

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
   <title>Testare</title>
    <link rel="stylesheet" type="text/css" href="base.css"> 
   <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
</head>
<body>
<div id="doc" class="yui-t7">
   <div id="hd" role="banner"><h1><img src="imgs/ec_logo.gif"></h1>
  </div>
   <div id="bd" role="main">
	<div class="yui-gd">
    <div class="yui-u first">testare!!!<br><br><br><br>
	<!-- YOUR DATA GOES HERE -->
	    </div>
    <div class="yui-u">
	
	<? 
	$id=array();
	$dbh=dbConn();
	
	$id=returnTeste("SELECT * FROM `testare` ;",'');
	
	dbClose($dbh);?> <br>
     <form action="" name="testQR" method="post">
      <input type="submit" name="buton1"  value="Adauga nou" >
      <?php
		if(isset($_POST['buton1'])) {
		afis();
}
?>
   
    <?  if ($tb1!=null)
	{
	$dbh=dbConn();
	insert("INSERT INTO `testare` (`ID`, `Username`, `Nume`, `Prenume`) VALUES (NULL, '".$tb1."', '".$tb2."','".$tb3."');",'');
	
	$id=returnTeste("SELECT * FROM `testare` ;",'');
	dbClose($dbh);
	} ?>
    </table>
    	

    
    
  
   <!-- 
    <? for ($i=0;$i<4;$i++)
	{ ?>
    tralalala <br>
    <? } ?> -->
	
	    </div>
</div>

	</div>
   <div id="ft" role="contentinfo">
   <form action="index1.php" name="testQR" method="post">
	
	<input type="submit" name="buton" value="Home" >
	
	</form><p>Footer</p></div>
</div>
</body>
</html>
